package com.tanhua.sso.pojo;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

@Data
@AllArgsConstructor//全参构造
@NoArgsConstructor//无参构造
@Slf4j//日志
public class User extends BasePojo {
    private Long id;
    private String mobile;//手机号
    @JsonIgnore
    private String password;//密码

    public static void main(String[] args) {
        User user=new User();
        user.setId(111L);
        user.setMobile("123456456");
        log.info(user.toString());
    }

}
